@import url(../pubiic/common.css);
@import url(../pubiic/flex_layout.css);
@import url(../../font/iconfont.css);
@import url(../pubiic/theme-switch.css);
@import url(../pubiic/style.css);

:root {
    width: 100vw;
}

body {
    background-color: var(--item-color) !important;
}

/* 头部Start */
#header {
    display: flex;
    align-items: center;
    background-color: var(--deputy-color);
    height: 12vh;
    box-shadow: rgb(229 229 229) 0px -1px 0px 0px inset
}

#header article {
    width: 88vw;
    margin: 0 auto;
}

#header article img {
    height: 10vh;
    object-fit: cover;
}

/* 头部End */
/* 主体Start */
main {
    width: 100vw;
}

/* 表单群 */
.loginForm {
    display: flex;
    flex-direction: column;
    width: 420px;
    /* height: 50vh; */
    margin: 70px auto;
    padding: 30px 50px;
    background: var(--item-color);
}

/* 标题 */
.loginForm h2 {
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: .1em;
}

.inputBox {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: 100%;
    margin-top: 18px;
}

/* 输入框 */
.inputBox input {
    position: relative;
    left: 0;
    padding: 15px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--font-color);
    letter-spacing: .05em;
    z-index: 12;
}

.loginForm .long .ltxt {
    width: 100%;
}

.loginForm .short .stxt {
    width: 30%;
}

/* 提示 */
.inputBox span {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 99;
    margin-left: 8px;
    padding: 5px;
    background-color: var(--item-color);
    border-radius: 8px;
    color: #8f8f8f;
    pointer-events: none;
    letter-spacing: .05em;
    transition: 0.5s;
}

.inputBox input:valid~span,
.inputBox input:focus~span {
    color: #ff3d5e;
    transform: translateX(0px) translateY(-24px);
    font-size: .75em;
}

/* 边框 */
.inputBox i {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    border: 1.2px solid #ccc;
    border-radius: 8px;
    pointer-events: none;
    transition: .5s;
}

.inputBox input:valid~i,
.inputBox input:focus~i {
    border: 1.2px solid #ff3d5e;
}

/* 验证码图片 */
.checkimg {
    margin-left: .8rem;
}

/* 复选框 */
.checkBox {
    display: flex;
    align-items: center;
    margin: .8rem 0;
}

/* 按钮 */
.submit {
    padding: 16px;
    background-color: #ff3d5e;
    border-radius: 8px;
    border: none;
    color: #fff;
}

/* 链接 */
.links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    font-size: .8rem;
}

.links a:hover,
.links a:last-child {
    color: #ff3d5e;
}

/* 主体End */
/* 548以下 */
@media screen and (max-width: 548px) {
    .loginForm {
        max-width: calc(4.16667 * 18%);
        padding: 30px 0;
    }
}

footer {
    transform: translateY(50px);
}